package org.xxx.epms.inspector.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.xxx.epms.inspector.dto.InspectorParam;
import org.xxx.epms.inspector.model.Inspector;
import org.xxx.epms.inspector.model.InspectorDetails;

import javax.swing.*;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lb
 * @since 2024-06-08
 */
public interface InspectorService extends IService<Inspector> {
    /**
     * 分页获取检查员列表
     * @return 检查员列表
     * @Param inspectorParam 查询条件
     * @Param pageNum 页码
     * @Param pageSize 页大小
     */
    public Page<Inspector> getInspectorList(InspectorParam inspectorParam, int pageNum, int pageSize);

    /**
     * 获取分页数据总页数
     * @return 总页数
     * @Param inspectorParam 查询条件
     * @Param pageSize 页大小
     */
    public int getInspectorListTotalPage(InspectorParam inspectorParam,int pageSize);

    /**
     * 根据网格员ID获取网格员信息
     * @return 网格员信息
     * @Param insId 网格员ID
     */
    public Inspector getInspectorByInsId(Integer insId);

    /**
     * 根据网格员电话获取网格员信息
     * @param insTel
     * @return
     */
    public Inspector getInspectorByInsTel(String insTel);

    /**
     * 登录
     * @param inspectorParam
     * @return
     */
    public  String login(InspectorParam inspectorParam);

    public InspectorDetails loadUserByUsername(Integer username);

    public Inspector register(InspectorParam inspectorParam);
}
